
require "game_family_1_1_Scene"
--require "game_family_1_2_Scene"
--require "game_family_1_3_Scene"
require "XSMainMapScene"
--require "SSMainMapScene"
--require "BSMainMapScene"
--require "selectScene2.lua"--qinzi
require "game_3_1_1_1_Scene"
require "game_3_1_1_2_Scene"
require "game_3_1_1_3_Scene"
--require "Qinzi_WinEndScene"
--require "Qinzi_LoseEndScene"
--ui
--require "game_XKTang_1_1_Scene"
--require "game_XKTang_2_1_Scene"
--require "game_XKTang_3_1_Scene"
--require "game_XKTang_4_1_Scene"
--require "choosePetScene"
--require "mainMenuScene"
require "homeScene"
--require "parentScene"
require "boxScene"
require "jz_rukou"
require "jz_main"
require "jz_tx"
require "jz_manage"
require "jz_change"
require "parent&choosepet.jz_mes"
require "parent&choosepet.jz_login"
require "startMainUiLayer"
require "qinziMainLayer"
require "match_layer"
require "parent&choosepet.jz_pass_change"
gameSceneState={normal="0",pause="1",endlayer="2",layerChange="3"}
_allUI={--ui控制
    match={name="match",crt_fun=runmatch_layerScene},
--    boshi311={name="boshi311",crt_fun=crt_game_3_1_1_1_Scene},-- 只为了测试用以后删除
--    boshi312={name="boshi312",crt_fun=crt_game_3_1_1_2_Scene},-- 只为了测试用以后删除
--    boshi313={name="boshi313",crt_fun=crt_game_3_1_1_3_Scene},-- 只为了测试用以后删除
--    mainMenu={name="mainMenu",crt_fun=crt_mainMenuScene},
    homeScene={name="homeScene",crt_fun=runstartMainUiScene},
--    xkt1 = {name="xk1",crt_fun=crt_game_XKTang_1_1_Scene},
--    xkt2 = {name="xk2",crt_fun=crt_game_XKTang_2_1_Scene},
--    xkt3 = {name="xk3",crt_fun=crt_game_XKTang_3_1_Scene},
--    xkt4 = {name="xk4",crt_fun=crt_game_XKTang_4_1_Scene},
    --parent={name="parentScene",crt_fun=crt_parentScene},
    --choosePet={name="choosePetScene",crt_fun=crt_chooseScene},
    boxScene={name="boxScene",crt_fun=crt_boxScene},
    --    QinziXuanKeScene={name="QinziXuanKeScene",crt_fun=crt_selectScene2},
    QinziXuanKeScene={name="QinziXuanKeScene",crt_fun=runqinziMainLayerScene},
--    QinziWinEndScene={name="QinziWinEndScene",crt_fun=crt_Qinzi_WinEndScene},
--    QinziLoseEndScene={name="QinziLoseEndScene",crt_fun=crt_Qinzi_LoseEndScene},
    jz_rukou={name="jz_rukou",crt_fun=crt_jz_rukouScene},
    jz_main={name="jz_main",crt_fun=crt_jz_mainScene},
    jz_tx={name="jz_tx",crt_fun=crt_jz_txScene},
    jz_manage={name="jz_manage",crt_fun=crt_jz_manageScene},
    jz_change={name="jz_change",crt_fun=crt_jz_changeScene},
    jz_pass_change={name="jz_pass_change",crt_fun=crt_jz_pass_changeScene},
    jz_mes={name="jz_mes",crt_fun=crt_jz_mesScene},
    jz_login={name="jz_login",crt_fun=crt_jz_loginScene},
    XS_MainMapScene={name="XS_MainMapScene",crt_fun=crt_XSMainMapScene},
    SS_MainMapScene={name="SS_MainMapScene",crt_fun=crt_XSMainMapScene},
    BS_MainMapScene={name="BS_MainMapScene",crt_fun=crt_XSMainMapScene}
}
function goUI(_SceneInfo)
    _curSceneName=_SceneInfo.name
    _curScene=_SceneInfo.crt_fun()
    if cc.Director:getInstance():getRunningScene() then
        cc.Director:getInstance():replaceScene(_curScene)
    else
        cc.Director:getInstance():runWithScene(_curScene)
    end
end
cclog("control--->version->1.0.0.2")